package org.fatmansoft.teach.Repository.ViewRepository.HonorInfo;

import org.fatmansoft.teach.entity.ViewEntity.HonorInfo.HonorType;
import org.fatmansoft.teach.entity.ViewEntity.HonorInfo.StudentHonor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentHonorRepository extends JpaRepository<StudentHonor, Integer> {
    List<StudentHonor> findStudentHonorByStudentId(Integer studentNum);

    List<StudentHonor> findAllByStudentId(Integer studentId);

    List<StudentHonor> findAllByHonorType(HonorType honorType);
}
